<template>
  <div class="LoginStyleAll">
    <div class="">
      <p>{{hello}}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from "vue"
import {hello} from "../hooks/useLogin"
import axios from "axios"

onMounted(()=>{
    console.log("这是登录页")
    axios.get(`http://123.56.44.159:5000/hello?name=陈天羽`).then(res=>{
      console.log(res)
      hello.value = res.data
    }).catch(err=>{
      console.log(err)
    })
})
</script>

<style scoped>
@import "../css/LoginCss.css";
</style>